package com.kittlen.managementSystem.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 学员选择表
 * </p>
 *
 * @author kittlen
 * @since 2021-01-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_choice")
public class Choice implements Serializable {

    private static final long serialVersionUID = 1L;

    public Choice(String choiceId) {
        this.choiceId = choiceId;
    }

    public Choice() {
    }

    /**
     * 选择id
     */
    @TableId(value = "choice_id", type = IdType.INPUT)
    private String choiceId;

    /**
     * 学员id
     */
    private Student student;

    /**
     * 教练id
     */
    private Coach coach;

    /**
     * 当前阶段	1:科目一	2:科目二	3:科目三	4:科目四
     */
    private Integer stage;

    /**
     * 当前阶段是否已经结束(0:否)
     */
    private Boolean stageEnd;

    /**
     * 选择时间
     */
    private String createDate;

    /**
     * 当前阶段结束时间
     */
    private String endDate;

    public class Choices{
        private List<String> studentIds;
        private List<String> choiceIds;

        public List<String> getStudentIds() {
            return studentIds;
        }

        public void setStudentIds(List<String> studentIds) {
            this.studentIds = studentIds;
        }

        public List<String> getChoiceIds() {
            return choiceIds;
        }

        public void setChoiceIds(List<String> choiceIds) {
            this.choiceIds = choiceIds;
        }
    }

}
